import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import Layout from '@/layouts'
// import Home from '@/pages/Home'
import ModelViewer from '@/pages/ModelViewer'

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      // {
      //   index: true,
      //   element: <Home />,
      // },
      {
        index: true,
        // path: '/model-viewer',
        element: <ModelViewer />,
      },
    ],
  },
])

function Router() {
  return <RouterProvider router={router} />
}

export default Router
